package com.xidian.zhiancloud.dao.riskcontrol.riskpointslist;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.xidian.zhiancloud.model.riskcontrol.TEquipFacStatusList;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaEntity;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaGY00Entity;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaSS00Entity;
import com.xidian.zhiancloud.model.riskcontrol.entity.TEquipFacStaZY00Entity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 风险管控-设备设施清单
 */

public interface TEquipFacStatusMapper extends BaseMapper<TEquipFacStatusList> {


    Page<TEquipFacStatusList> getTEquipFacStatusList(
            @Param("searchkey") String searchkey,
            @Param("equipType") Integer equipType,
            @Param("riskpointType") String riskpointType,
            @Param("companyId") Long companyId,
            @Param("status") Integer status,
            @Param("administerId") Integer administerId);

    int insertTEquipFacStatusList(@Param("data") TEquipFacStatusList data);

    int deleteTEquipFacStatus(List<String> list);

    int modifyTEquipFacStatus
        (@Param("id") Long id,@Param("data") TEquipFacStatusList data);

    TEquipFacStatusList selectByCompanyIdAndEquipName(
            @Param("companyId") Long companyId,
            @Param("riskpointType") String riskpointType,
            @Param("equipName") String equipName);

    List<TEquipFacStatusList> getById
            (@Param("companyId") Long companyId,
             @Param("riskpointsId") String riskpointsId);
    
    List<TEquipFacStatusList> getByIdList(@Param("companyId") Long companyId,List<String> riPoIdList);

    int updateByIdStatus(List<String> list);

    Page<TEquipFacStaEntity> getExportEquipFacStaData
            (@Param("companyId") Long companyId,
             @Param("riskpointType") String riskpointType,List<Object> list);

    int updateIdAndRiskPicture(List<String> list,
            @Param("riskPicture") String riskPicture);
    
    int addSS00ExcelFile(@Param("companyId") Long companyId,@Param("userId") Long userId,
                         @Param("data") List<TEquipFacStaSS00Entity> data);

    int addZY00ExcelFile(@Param("companyId") Long companyId,@Param("userId") Long userId,
                         @Param("data") List<TEquipFacStaZY00Entity> data);

    int addGY00ExcelFile(@Param("companyId") Long companyId,@Param("userId") Long userId,
                         @Param("data") List<TEquipFacStaGY00Entity> data);
    
}
